package com.speily.server.search._doc;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Mapping;

import java.util.Date;

/**
 * @Auther: SPL
 * @Date: 2019-08-19 10:57
 * @Description: - 博客文章 实体
 */
@Data
@Builder
@Document(indexName = "blog", type = "article")
@Mapping(mappingPath = "/esJson/Article.json")
public class Article {

    @Tolerate
    public Article() {
    }

    @Id
    private String id;

    private String tittle;

    private String content;

    private String author;

    private Date createTime;

    private Date updateTime;

}
